//
// Created by JYL on 2024-05-26.
//

#ifndef LV2_12_LED_H
#define LV2_12_LED_H

#include "main.h"

typedef struct {
    uint8_t b1:1;
    uint8_t b2:1;
    uint8_t b3:1;
    uint8_t b4:1;
    uint8_t b5:1;
    uint8_t b6:1;
    uint8_t b7:1;
    uint8_t b8:1;
}bits;

typedef union {
    uint8_t hex;
    bits b;
}HexToBin;

extern HexToBin led_ctrl;

void LED_Control(uint8_t led);

#endif //LV2_12_LED_H
